
import mx.controls.sliderClasses.Slider;
public function changeSlider(slider:Slider):void
{
	caption.text=String(slider.value);
	qsChart.updateCarbonPrice(slider.value);
} 

public function incSlider(slider:Slider, inc:Number):void
{
	slider.value+=10 * inc;
	// Round to nearest 10:
	slider.value=int(slider.value / 10) * 10;
	changeSlider(slider);
}